package com.huashi.dealer.core.exception;

/**
 * 通用异常类
 */
public class CommonException extends RuntimeException {

    public CommonException(String message) {
        super(message);
    }

    public CommonException(String message, Object... args) {
        super(String.format(message, args));
    }

    public CommonException(String message, Throwable cause) {
        super(message, cause);
    }

    public String getMsg() {
        return getMessage();
    }

    public Integer getCode() {
        return getCode();
    }
}
